#ifndef VISITINGNODEWIDGET_H
#define VISITINGNODEWIDGET_H

#include "mymap.h"
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>

//待参观景点队列窗口
class VisitingNodeWidget : public QWidget
{
    Q_OBJECT
private:
    QVBoxLayout *m_layout;
    QLabel *m_emptyLabel;
    int m_nodeNum = 0;
public:
    explicit VisitingNodeWidget(QWidget *parent = nullptr);
    //添加待参观景点单元
    void addNodeUnit(myNode *node);
signals:
    void nodeUnitRemoved(int ID);
public slots:
    void removeNodeUnit(int ID);

};

//待参观景点单元
class nodeUnit : public QWidget
{
    Q_OBJECT
private:
    int m_ID;
public:
    explicit nodeUnit(myNode *node, QWidget *parent = nullptr);
signals:
    void nodeUnitRemoved(int ID);
};

#endif // VISITINGNODEWIDGET_H
